package cn.dancepeak.employee.mapper;

import cn.dancepeak.employee.domain.Employee;
import cn.dancepeak.employee.query.EmployeeQuery;

import java.util.List;

public interface EmployeeMapper {
    void insert(Employee employee);

    void updateById(Employee employee);

    void deleteById(Long id);

    void deleteByList(List<Long> ids);

    Employee selectById(Long id);

    List<Employee> list(EmployeeQuery employeeQuery);

    Employee selectByEmployeeName(String employeeName);

    void updateState(Employee employee);

    void saveEmployeeRole(Employee employee);

    void deleteEmployeeRoleId(Long id);
}
